import percent from './percent';

//获取元素
const btn = document.querySelector('button');

btn.onclick = function(){
    if(percent(60)){
        alert('恭喜恭喜 ---');
    }else{
        alert('再接再厉 xxx'); 
    }
}